package cmd

import (
	"fmt"
	"time"

	cobra "github.com/github-user/myCobra"
)

var dateCmd = &cobra.Command{
	Use:   "date",
	Short: "return current date",
	Long:  `the subcommand which is called by easyApp, return current date`,
	Run: func(cmd *cobra.Command, args []string) {
		currentTime := time.Now()
		year := currentTime.Year()
		month := currentTime.Month()
		day := currentTime.Day()
		fmt.Println("Current date: ", year, month, day)
	},
}